#!/bin/bash

#远程执行NUC中shell脚本判断按摩头有无问题
#通过IP存活判断NUC是否启动
IP_ADDRESS="192.168.1.106"

if ping ${IP_ADDRESS} -c 3 &> /dev/null
then
    ssh leon@192.168.1.106 '~/massage_code/system_check/massage_hand_check/massage_hand_check.sh'
else
    echo "-1: NUC ${IP_ADDRESS} is not open"
fi




